﻿/*
 * Created by SharpDevelop.
 * User: tdptcj
 * Date: 10/11/2011
 * Time: 2:36
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;

namespace MetaVideoEditorEvolved
{
	/// <summary>
	/// Interaction logic for MappingGenreWindow.xaml
	/// </summary>
	public partial class MappingGenreWindow : Window
	{
		public MappingGenreWindow()
		{
			InitializeComponent();
			
			GalaSoft.MvvmLight.Messaging.Messenger.Default.Register(this, new Action<Messages.CloseMessage>((message)=>
			                                                                                                {
			                                                                                                	var close = message as Messages.CloseMessage;
			                                                                                                	
			                                                                                                	if (close.WindowToClose == Messages.WindowType.GenreMappingWindow) {
			                                                                                                		this.Close();
			                                                                                                	}
			                                                                                                }));
		}
	}
}